﻿using System;
namespace SRF.Data
{
    interface IDBHelper
    {
        System.Collections.Generic.ICollection<SRF.Data.Cfg.ClassInfo> ClassMappings { get; set; }
        string ConnectionString { get; }
        SRF.Data.Impl.Database Database { get; }
        int Delete<T>(object id);
        bool Exist<T>(object id);
        IQuery GetNamedQuery(string sqlName);
        IQuery GetQuery(string sql);
        int Insert(object entity);
        System.Collections.Generic.IDictionary<string, string> Queries { get; set; }
        int Update(object entity, object id);
    }
}
